﻿<controls:ChildWindow x:Class="VAdvantage.Dialogs.VImageDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="VImageDialog">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="221*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto " />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0" Orientation="Horizontal">
            <TextBlock Text="Select File" Margin="5"  >
                </TextBlock>
                <Button Name="btnFile" Content="...." Click="Button_Click"></Button>
            </StackPanel>
            <ScrollViewer Name="scroller" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <Image Name="img" ></Image>
            </ScrollViewer>
        </Grid>
        <Button x:Name="CancelButton" Click="CancelButton_Click" Width="35" Height="35" HorizontalAlignment="Right" HorizontalContentAlignment="Center" Margin="0,0,37,1" Grid.RowSpan="1" Grid.Row="2">
            <Image Source="/VAdvantage;component/Images/cancel_up.png"  Stretch="Fill"></Image>
        </Button>
        <Button x:Name="OKButton" Click="OKButton_Click" Width="35" Height="35" HorizontalAlignment="Right" HorizontalContentAlignment="Center" Margin="0,0,0,1" Grid.RowSpan="1" Grid.Row="2">
            <Image Source="/VAdvantage;component/Images/right_up.png"  Stretch="Fill"></Image>
        </Button>
    </Grid>
</controls:ChildWindow>